package com.tghhh.gkrpc;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 表示网络传输的一个端点
 *
 * @author Zhikang.Peng
 * @version 1.0
 * @email thghh@qq.com
 * @date 2020/4/10 16:51
 */
@Data
@AllArgsConstructor
public class Peer {
    private String host;
    private int port;

    public String getURL() {
        return "http://" + host + ":" + port;
    }

}
